Integrand size = 23, antiderivative size = 268 \[ \int (c+d x)^m (a+i a \sinh (e+f x))^2 \, dx=\frac {3 a^2 (c+d x)^{1+m}}{2 d (1+m)}-\frac {2^{-3-m} a^2 e^{2 e-\frac {2 c f}{d}} (c+d x)^m \left (-\frac {f (c+d x)}{d}\right )^{-m} \Gamma \left (1+m,-\frac {2 f (c+d x)}{d}\right )}{f}+\frac {i a^2 e^{e-\frac {c f}{d}} (c+d x)^m \left (-\frac {f (c+d x)}{d}\right )^{-m} \Gamma \left (1+m,-\frac {f (c+d x)}{d}\right )}{f}+\frac {i a^2 e^{-e+\frac {c f}{d}} (c+d x)^m \left (\frac {f (c+d x)}{d}\right )^{-m} \Gamma \left (1+m,\frac {f (c+d x)}{d}\right )}{f}+\frac {2^{-3-m} a^2 e^{-2 e+\frac {2 c f}{d}} (c+d x)^m \left (\frac {f (c+d x)}{d}\right )^{-m} \Gamma \left (1+m,\frac {2 f (c+d x)}{d}\right )}{f} \]
3/2*a^2*(d*x+c)^(1+m)/d/(1+m)-2^(-3-m)*a^2*exp(2*e-2*c*f/d)*(d*x+c)^m*GAMM A(1+m,-2*f*(d*x+c)/d)/f/((-f*(d*x+c)/d)^m)+I*a^2*exp(e-c*f/d)*(d*x+c)^m*GA MMA(1+m,-f*(d*x+c)/d)/f/((-f*(d*x+c)/d)^m)+I*a^2*exp(-e+c*f/d)*(d*x+c)^m*G AMMA(1+m,f*(d*x+c)/d)/f/((f*(d*x+c)/d)^m)+2^(-3-m)*a^2*exp(-2*e+2*c*f/d)*( d*x+c)^m*GAMMA(1+m,2*f*(d*x+c)/d)/f/((f*(d*x+c)/d)^m)
Time = 0.53 (sec) , antiderivative size = 229, normalized size of antiderivative = 0.85 \[ \int (c+d x)^m (a+i a \sinh (e+f x))^2 \, dx=\frac {1}{8} a^2 (c+d x)^m \left (\frac {12 (c+d x)}{d (1+m)}-\frac {2^{-m} e^{2 e-\frac {2 c f}{d}} \left (-\frac {f (c+d x)}{d}\right )^{-m} \Gamma \left (1+m,-\frac {2 f (c+d x)}{d}\right )}{f}+\frac {8 i e^{e-\frac {c f}{d}} \left (-\frac {f (c+d x)}{d}\right )^{-m} \Gamma \left (1+m,-\frac {f (c+d x)}{d}\right )}{f}+\frac {8 i e^{-e+\frac {c f}{d}} \left (\frac {f (c+d x)}{d}\right )^{-m} \Gamma \left (1+m,\frac {f (c+d x)}{d}\right )}{f}+\frac {2^{-m} e^{-2 e+\frac {2 c f}{d}} \left (\frac {f (c+d x)}{d}\right )^{-m} \Gamma \left (1+m,\frac {2 f (c+d x)}{d}\right )}{f}\right ) \]
(a^2*(c + d*x)^m*((12*(c + d*x))/(d*(1 + m)) - (E^(2*e - (2*c*f)/d)*Gamma[ 1 + m, (-2*f*(c + d*x))/d])/(2^m*f*(-((f*(c + d*x))/d))^m) + ((8*I)*E^(e - (c*f)/d)*Gamma[1 + m, -((f*(c + d*x))/d)])/(f*(-((f*(c + d*x))/d))^m) + ( (8*I)*E^(-e + (c*f)/d)*Gamma[1 + m, (f*(c + d*x))/d])/(f*((f*(c + d*x))/d) ^m) + (E^(-2*e + (2*c*f)/d)*Gamma[1 + m, (2*f*(c + d*x))/d])/(2^m*f*((f*(c + d*x))/d)^m)))/8
Time = 0.63 (sec) , antiderivative size = 262, normalized size of antiderivative = 0.98, number of steps used = 5, number of rules used = 5, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.217, Rules used = {3042, 3799, 3042, 3793, 2009}
Below are the steps used by Rubi to obtain the solution. The rule number used for the transformation is given above next to the arrow. The rules definitions used are listed below.
\(\displaystyle \int (c+d x)^m (a+i a \sinh (e+f x))^2 \, dx\) |
\(\Big \downarrow \) 3042 |
\(\displaystyle \int (c+d x)^m (a+a \sin (i e+i f x))^2dx\) |
\(\Big \downarrow \) 3799 |
\(\displaystyle 4 a^2 \int (c+d x)^m \sinh ^4\left (\frac {e}{2}+\frac {f x}{2}-\frac {i \pi }{4}\right )dx\) |
\(\Big \downarrow \) 3042 |
\(\displaystyle 4 a^2 \int (c+d x)^m \sin \left (\frac {i e}{2}+\frac {i f x}{2}+\frac {\pi }{4}\right )^4dx\) |
\(\Big \downarrow \) 3793 |
\(\displaystyle 4 a^2 \int \left (-\frac {1}{8} \cosh (2 e+2 f x) (c+d x)^m+\frac {1}{2} i \sinh (e+f x) (c+d x)^m+\frac {3}{8} (c+d x)^m\right )dx\) |
\(\Big \downarrow \) 2009 |
\(\displaystyle 4 a^2 \left (-\frac {2^{-m-5} e^{2 e-\frac {2 c f}{d}} (c+d x)^m \left (-\frac {f (c+d x)}{d}\right )^{-m} \Gamma \left (m+1,-\frac {2 f (c+d x)}{d}\right )}{f}+\frac {i e^{e-\frac {c f}{d}} (c+d x)^m \left (-\frac {f (c+d x)}{d}\right )^{-m} \Gamma \left (m+1,-\frac {f (c+d x)}{d}\right )}{4 f}+\frac {i e^{\frac {c f}{d}-e} (c+d x)^m \left (\frac {f (c+d x)}{d}\right )^{-m} \Gamma \left (m+1,\frac {f (c+d x)}{d}\right )}{4 f}+\frac {2^{-m-5} e^{\frac {2 c f}{d}-2 e} (c+d x)^m \left (\frac {f (c+d x)}{d}\right )^{-m} \Gamma \left (m+1,\frac {2 f (c+d x)}{d}\right )}{f}+\frac {3 (c+d x)^{m+1}}{8 d (m+1)}\right )\) |
4*a^2*((3*(c + d*x)^(1 + m))/(8*d*(1 + m)) - (2^(-5 - m)*E^(2*e - (2*c*f)/ d)*(c + d*x)^m*Gamma[1 + m, (-2*f*(c + d*x))/d])/(f*(-((f*(c + d*x))/d))^m ) + ((I/4)*E^(e - (c*f)/d)*(c + d*x)^m*Gamma[1 + m, -((f*(c + d*x))/d)])/( f*(-((f*(c + d*x))/d))^m) + ((I/4)*E^(-e + (c*f)/d)*(c + d*x)^m*Gamma[1 + m, (f*(c + d*x))/d])/(f*((f*(c + d*x))/d)^m) + (2^(-5 - m)*E^(-2*e + (2*c* f)/d)*(c + d*x)^m*Gamma[1 + m, (2*f*(c + d*x))/d])/(f*((f*(c + d*x))/d)^m) )
3.2.53.3.1 Defintions of rubi rules used
Int[((c_.) + (d_.)*(x_))^(m_)*sin[(e_.) + (f_.)*(x_)]^(n_), x_Symbol] :> In t[ExpandTrigReduce[(c + d*x)^m, Sin[e + f*x]^n, x], x] /; FreeQ[{c, d, e, f , m}, x] && IGtQ[n, 1] && ( !RationalQ[m] || (GeQ[m, -1] && LtQ[m, 1]))
Int[((c_.) + (d_.)*(x_))^(m_.)*((a_) + (b_.)*sin[(e_.) + (f_.)*(x_)])^(n_.) , x_Symbol] :> Simp[(2*a)^n Int[(c + d*x)^m*Sin[(1/2)*(e + Pi*(a/(2*b))) + f*(x/2)]^(2*n), x], x] /; FreeQ[{a, b, c, d, e, f, m}, x] && EqQ[a^2 - b^ 2, 0] && IntegerQ[n] && (GtQ[n, 0] || IGtQ[m, 0])
\[\int \left (d x +c \right )^{m} \left (a +i a \sinh \left (f x +e \right )\right )^{2}d x\]
Time = 0.09 (sec) , antiderivative size = 259, normalized size of antiderivative = 0.97 \[ \int (c+d x)^m (a+i a \sinh (e+f x))^2 \, dx=\frac {{\left (a^{2} d m + a^{2} d\right )} e^{\left (-\frac {d m \log \left (\frac {2 \, f}{d}\right ) + 2 \, d e - 2 \, c f}{d}\right )} \Gamma \left (m + 1, \frac {2 \, {\left (d f x + c f\right )}}{d}\right ) - 8 \, {\left (-i \, a^{2} d m - i \, a^{2} d\right )} e^{\left (-\frac {d m \log \left (\frac {f}{d}\right ) + d e - c f}{d}\right )} \Gamma \left (m + 1, \frac {d f x + c f}{d}\right ) - 8 \, {\left (-i \, a^{2} d m - i \, a^{2} d\right )} e^{\left (-\frac {d m \log \left (-\frac {f}{d}\right ) - d e + c f}{d}\right )} \Gamma \left (m + 1, -\frac {d f x + c f}{d}\right ) - {\left (a^{2} d m + a^{2} d\right )} e^{\left (-\frac {d m \log \left (-\frac {2 \, f}{d}\right ) - 2 \, d e + 2 \, c f}{d}\right )} \Gamma \left (m + 1, -\frac {2 \, {\left (d f x + c f\right )}}{d}\right ) + 12 \, {\left (a^{2} d f x + a^{2} c f\right )} {\left (d x + c\right )}^{m}}{8 \, {\left (d f m + d f\right )}} \]
1/8*((a^2*d*m + a^2*d)*e^(-(d*m*log(2*f/d) + 2*d*e - 2*c*f)/d)*gamma(m + 1 , 2*(d*f*x + c*f)/d) - 8*(-I*a^2*d*m - I*a^2*d)*e^(-(d*m*log(f/d) + d*e - c*f)/d)*gamma(m + 1, (d*f*x + c*f)/d) - 8*(-I*a^2*d*m - I*a^2*d)*e^(-(d*m* log(-f/d) - d*e + c*f)/d)*gamma(m + 1, -(d*f*x + c*f)/d) - (a^2*d*m + a^2* d)*e^(-(d*m*log(-2*f/d) - 2*d*e + 2*c*f)/d)*gamma(m + 1, -2*(d*f*x + c*f)/ d) + 12*(a^2*d*f*x + a^2*c*f)*(d*x + c)^m)/(d*f*m + d*f)
Exception generated. \[ \int (c+d x)^m (a+i a \sinh (e+f x))^2 \, dx=\text {Exception raised: TypeError} \]
Time = 0.09 (sec) , antiderivative size = 210, normalized size of antiderivative = 0.78 \[ \int (c+d x)^m (a+i a \sinh (e+f x))^2 \, dx=\frac {1}{4} \, {\left (\frac {{\left (d x + c\right )}^{m + 1} e^{\left (-2 \, e + \frac {2 \, c f}{d}\right )} E_{-m}\left (\frac {2 \, {\left (d x + c\right )} f}{d}\right )}{d} + \frac {{\left (d x + c\right )}^{m + 1} e^{\left (2 \, e - \frac {2 \, c f}{d}\right )} E_{-m}\left (-\frac {2 \, {\left (d x + c\right )} f}{d}\right )}{d} + \frac {2 \, {\left (d x + c\right )}^{m + 1}}{d {\left (m + 1\right )}}\right )} a^{2} + i \, {\left (\frac {{\left (d x + c\right )}^{m + 1} e^{\left (-e + \frac {c f}{d}\right )} E_{-m}\left (\frac {{\left (d x + c\right )} f}{d}\right )}{d} - \frac {{\left (d x + c\right )}^{m + 1} e^{\left (e - \frac {c f}{d}\right )} E_{-m}\left (-\frac {{\left (d x + c\right )} f}{d}\right )}{d}\right )} a^{2} + \frac {{\left (d x + c\right )}^{m + 1} a^{2}}{d {\left (m + 1\right )}} \]
1/4*((d*x + c)^(m + 1)*e^(-2*e + 2*c*f/d)*exp_integral_e(-m, 2*(d*x + c)*f /d)/d + (d*x + c)^(m + 1)*e^(2*e - 2*c*f/d)*exp_integral_e(-m, -2*(d*x + c )*f/d)/d + 2*(d*x + c)^(m + 1)/(d*(m + 1)))*a^2 + I*((d*x + c)^(m + 1)*e^( -e + c*f/d)*exp_integral_e(-m, (d*x + c)*f/d)/d - (d*x + c)^(m + 1)*e^(e - c*f/d)*exp_integral_e(-m, -(d*x + c)*f/d)/d)*a^2 + (d*x + c)^(m + 1)*a^2/ (d*(m + 1))
\[ \int (c+d x)^m (a+i a \sinh (e+f x))^2 \, dx=\int { {\left (i \, a \sinh \left (f x + e\right ) + a\right )}^{2} {\left (d x + c\right )}^{m} \,d x } \]
Timed out. \[ \int (c+d x)^m (a+i a \sinh (e+f x))^2 \, dx=\int {\left (a+a\,\mathrm {sinh}\left (e+f\,x\right )\,1{}\mathrm {i}\right )}^2\,{\left (c+d\,x\right )}^m \,d x \]